package com.feng.springmvc.controller;

import com.feng.springmvc.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

@Controller
//@RestController
public class UserController {
    @RequestMapping("/j1")
    @ResponseBody
    public String test1(){
        User user = new User(101,"2021年",18);
        return user.toString();
    }

}
